package com.aaa.service.impl;

import com.aaa.entity.ContractExpire;
import com.aaa.entity.Result;
import com.aaa.mapper.ContractExpireMapper;
import com.aaa.query.ContractQuery;
import com.aaa.service.IContractExpireService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author auto
 * @since 2021-01-29
 */
@Service
public class ContractExpireServiceImpl extends ServiceImpl<ContractExpireMapper, ContractExpire> implements IContractExpireService {

    @Autowired
    ContractExpireMapper mapper;

    /**
     *  查询所有 ，出租到期合同
     */

    @Override
    public Result listAllExpireLease() {

        List<ContractExpire> contractExpires = mapper.listAllExpireLease();
        return new Result(10031,"查询成功",contractExpires);
    }


    @Override
    public Result listAllExpireRent() {

        List<ContractExpire> contractExpires = mapper.listAllExpireRent();
        return new Result(10032,"查询成功",contractExpires);
    }

    @Override
    public Result ContractExpire(ContractQuery query) {
        return null;
    }


}
